<template>
  <div id="app">
    <common-head v-show="!(path==='/sign/login' || path==='/sign/register')"></common-head>
    <router-view />
    <QRCode></QRCode>
  </div>
</template>

<script>
import CommonHead from "./components/Common/CommonHead.vue";
import QRCode from "./components/QRCode.vue";
export default {
  components: { CommonHead, QRCode },
  name: "App",
  data() {
    return {
      path: "",
    };
  },
  created() {},
  mounted() {
    this.path = this.$route.path;
  },
  watch: {
    $route(to, from) {
      this.path = to.path;
    },
  },
};
</script>

<style>
body {
  height: 100vh;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
</style>
